package com.wdc.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName book
 */
@Data
@TableName(value = "book")
public class BookEntity implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图书名
     */
    @TableField(value = "book_name")
    private String bookName;

    /**
     *  图书编号
     */
    @TableField(value = "bookID")
    private String bookId;

    /**
     * 作者
     */
    private String author;

    /**
     * 图书类型
     */
    @TableField(value = "book_type")
    private String bookType;

    /**
     * 收藏时间
     */
    @TableField(value = "collection_time")
    private Date collectionTime;

    /**
     * 图书封面
     */
    private String image;

    private static final long serialVersionUID = 1L;
}